package com.springcloudlearning.chapter.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.feign.client.UserClient;
import com.service.base.ResponseResult;

@RestController
@RequestMapping("/user")
public class WebController {

    @Autowired
    private UserClient userService;

    @RequestMapping(value = "/getUserList", method = RequestMethod.GET)
	ResponseResult getPage(
			@RequestParam("pageNumber") Integer pageNumber,
			@RequestParam("pageSize") Integer pageSize) {
    	return userService.getPage(pageNumber, pageSize);
    }
}

